package com.fxkj.cloud.drms.infra.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * <p>description: </p>
 * @author ww
 * @date 2025/3/14 10:57
 */
@ConfigurationProperties(prefix = MqttConfigConstants.MQTT_PREFIX)
@Data
public class MqttProperties {
    private String host;
    private MqttClientProperties client = new MqttClientProperties();
    private MqttWebProperties web = new MqttWebProperties();

    // client 配置类
    @Data
    public static class MqttClientProperties {
        private int port;
        private String username;
        private String password;
    }

    // web 配置类
    @Data
    public static class MqttWebProperties {
        private int port;
        private String username;
        private String password;
    }

    // 订阅配置类
    @Data
    public static class MqttSubscribeProperties {
        private int poolSize;
    }


}
